package com.bookdemo.service.impl;

import com.bookdemo.dao.MenuDao;
import com.bookdemo.pojo.MainMenu;
import com.bookdemo.service.MenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author zhu
 *
 */
@Service
public class MenuServiceImpl implements MenuService {
    @Autowired
    MenuDao menuDao;

    @Override
    public List<MainMenu> getAllMenus() {
        List<MainMenu> menus = menuDao.getMenus();
        return menus;
    }
}
